package com.sm.dao;

import com.sm.model.LikeHappyRequest;
import org.apache.ibatis.annotations.Param;

public interface LikeHappyRequestMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(LikeHappyRequest record);

    int insertSelective(LikeHappyRequest record);

    LikeHappyRequest selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(LikeHappyRequest record);

    int updateByPrimaryKey(LikeHappyRequest record);

    LikeHappyRequest selectIsExist(@Param("userId")Integer userId,@Param("requestId")Integer requestId,@Param("likeType")Integer likeType);

    int cancelLike(@Param("userId")Integer userId,@Param("requestId")Integer requestId,@Param("likeType")Integer likeType);
}